package com.gxa.service.impl;

import com.gxa.dao.CarMapper;
import com.gxa.pojo.Car;
import com.gxa.pojo.CarVO;
import com.gxa.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @description: TODO
* @author JZ
* @date 2022/9/7 11:15
* @version 1.0
*/
@Service
public class CarServiceImpl implements CarService {

    @Autowired
    CarMapper mapper;

    @Override
    public boolean insertCar(Car car) {
        return mapper.insertCar(car)>0;
    }

    @Override
    public boolean deleteCar(int id) {
        return mapper.deleteCar(id)>0;
    }

    @Override
    public boolean updateCar(Car car) {
        return mapper.updateCar(car)>0;
    }

    @Override
    public List<Car> selectCar(CarVO car) {
        return mapper.selectCar(car);
    }

}
